#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pbt_reset_clicked();

    void on_pbt_up_clicked();

    void on_pbt_d_clicked();

    void on_pbt_l_clicked();

    void on_pbt_r_clicked();

    void on_pbt_b_clicked();

    void on_pbt_s_clicked();

    void on_pbt_img_clicked();

private:
    Ui::Widget *ui;

    //初始下标
    int px;
    int py;
    //像素面积
    int wx;
    int wy;

};
#endif // WIDGET_H
